package com.xxx.ssm.baem;


import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.*;

public class MyConfig {

    private List<Dog> dogList;
    private Map<String,Dog> dogMap;
    private Set<Dog> dogSet;
    private Properties properties;
    private Date birDay;

    public Date getBirDay() {
        return birDay;
    }

    public void setBirDay(Date birDay) {
        this.birDay = birDay;
    }

    public List<Dog> getDogList() {
        return dogList;
    }

    public void setDogList(List<Dog> dogList) {
        this.dogList = dogList;
    }

    public Map<String, Dog> getDogMap() {
        return dogMap;
    }

    public void setDogMap(Map<String, Dog> dogMap) {
        this.dogMap = dogMap;
    }

    public Set<Dog> getDogSet() {
        return dogSet;
    }

    public void setDogSet(Set<Dog> dogSet) {
        this.dogSet = dogSet;
    }

    public Properties getProperties() {
        return properties;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        MyConfig myConfig = context.getBean("myConfig", MyConfig.class);
        System.out.println("sssss" + myConfig.getDogList().size());



    }
}
